home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="ISO-8859-1"?>
-
- <!DOCTYPE web-app
- PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
- "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
-
- <web-app>
-
- <context-param>
- <param-name>com.adobe.gl.admin_email</param-name>
- <param-value>your_name_here</param-value>
- </context-param>
- <context-param>
- <param-name>com.adobe.gl.runtimeDebug</param-name>
- <param-value>false</param-value>
- </context-param>
-
- <servlet>
- <servlet-name>
- dsr
- </servlet-name>
- <description>
- When the container unloads the web application,
- this servlet makes sure to recycle any open
- database connections.
- </description>
- <servlet-class>
- com.adobe.gl.servlets6.dsr.DataSourceRegister
- </servlet-class>
- <load-on-startup>2</load-on-startup>
- </servlet>
-
- <taglib>
- <taglib-uri>
- /gl-taglib
- </taglib-uri>
- <taglib-location>
- /WEB-INF/tlds/taglib6.tld
- </taglib-location>
- </taglib>
-
- <taglib>
- <taglib-uri>
- http://java.apache.org/tomcat/examples-taglib
- </taglib-uri>
- <taglib-location>
- /WEB-INF/jsp/example-taglib.tld
- </taglib-location>
- </taglib>
-
- <security-constraint>
- <web-resource-collection>
- <web-resource-name>Protected Area</web-resource-name>
- <!-- Define the context-relative URL(s) to be protected -->
- <url-pattern>/jsp/security/protected/*</url-pattern>
- <!-- If you list http methods, only those methods are protected -->
- <http-method>DELETE</http-method>
- <http-method>GET</http-method>
- <http-method>POST</http-method>
- <http-method>PUT</http-method>
- </web-resource-collection>
- <auth-constraint>
- <!-- Anyone with one of the listed roles may access this area -->
- <role-name>tomcat</role-name>
- <role-name>role1</role-name>
- </auth-constraint>
- </security-constraint>
-
- <security-constraint>
- <web-resource-collection>
- <web-resource-name>datasources</web-resource-name>
- <url-pattern>/config/datasources/*</url-pattern>
- </web-resource-collection>
- <auth-constraint>
- <role-name>NobodyAtAll</role-name>
- </auth-constraint>
- </security-constraint>
-
- <!-- Default login configuration uses BASIC authentication -->
- <login-config>
- <auth-method>BASIC</auth-method>
- <realm-name>Example Basic Authentication Area</realm-name>
- </login-config>
-
- <!-- If you want to experiment with form-based logins, comment
- out the <login-config> element above and replace it with
- this one. Note that we are currently using a nonstandard
- authentication method, because the code to support form
- based login is incomplete and only lightly tested. -->
- <!--
- <login-config>
- <auth-method>EXPERIMENTAL_FORM</auth-method>
- <realm-name>Example Form-Based Authentication Area</realm-name>
- <form-login-config>
- <form-login-page>/jsp/security/login/login.jsp</form-login-page>
- <form-error-page>/jsp/security/login/error.jsp</form-error-page>
- </form-login-config>
- </login-config>
- -->
- </web-app>
-